package io.renren.modules.workflow.enums;

/**
 * @package com.cloudfile.archives.emnu
 * @Des 数据库列属性枚举
 * @author LandLord
 * @date 2020/6/18 10:33
 */
public enum ActBusColumnAttrEnum {
    VARCHAR("varchar", "文本型"),INT("int", "数字型"),DATE("date", "日期"),TIME("time", "时间");
    // 成员变量
    private String key;
    private String value;
    // 构造方法
    private ActBusColumnAttrEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    // 普通方法
    public static String getName(String key) {
        for (ActBusColumnAttrEnum fs : ActBusColumnAttrEnum.values()) {
            if (fs.getKey().equalsIgnoreCase(key)) {
                return fs.value;
            }
        }
        return null;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
